﻿using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShoppingWebSite
{
    public partial class Register : System.Web.UI.Page
    {

        
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            string sql = string.Format("insert UserName values('{0}','{1}','{2}','{3}')",
                txtUserName.Text.Trim(), txtPwd.Text.Trim(), txtRealName.Text.Trim(), txtTel.Text.Trim());
            if (BLLAllOperation.BLL_GetExecuteNonQuery(sql))
            {
                Response.Write("<script>alert('注册成功')</script>");
                Response.Redirect("homeWeb.aspx");
            }
            else
            {
                Response.Write("<script>alert('注册失败')</script>");
            }
        }
    }
}